package utils

import (
	"tizhi_front/model"
	"tizhi_front/nspel"
)

func NewMessage(uid int64, msg string) {
	message := model.Message0{
		StudentId: uid,
		Message:   msg,
		IsRead:    false,
	}
	err := message.Insert()
	if err != nil {
		nspel.Error(err)
	}
}
